package practice.practice_3_9.bookmanager.util;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * @AUTHOR LYF
 * @DATE 2022/3/9
 * @VERSION 1.0
 * @DESC
 */
public class FileUtil {
    static String filePath = "E:\\JavaProjects\\DemoProjects\\spring-recruiment\\java-base\\src\\main\\java\\practice\\practice_3_9\\resouces\\";




    public static void write(Object o) throws IOException {
        String className = o.getClass().getSimpleName();
        File file = new File(filePath+className+".txt");
        if(!file.exists()){
            System.out.println("创建文件!");
            file.createNewFile();
        }


        FileInputStream fileInputStream = new FileInputStream(file);




        System.out.println(className);
    }

}
